package com.lyc.demo.msg;

import com.lyc.demo.RabbitMQProducerApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = RabbitMQProducerApplication.class)
public class PaymentNotifySenderTests {

    @Autowired
    private PaymentNotifySender sender;

    @Test
    public void test_sender() {
        for (int i = 0; i < 100; i++) {
            sender.sender2("支付订单号：" + System.currentTimeMillis() + "[特殊]" + i);
            sender.sender3("支付订单号：" + System.currentTimeMillis() + "[特殊]" + i);
        }
    }

}
